server:
  port: 28086
  tomcat:
    maxHttpPostSize: -1

# 指定连接的配置环境
zte_config_server_addr: 10.161.3.148:8848   #【要切换环境，改这里】 #nacos服务器的地址，多个时以逗号间隔
zte_config_namespace: DEV         #【要切换环境，改这里】【注意这里是nacos中的id值】
zte_config_group: ZFS-CLOUD       # 【注意这里是nacos中的id值】
zte_config_username: nacos
zte_config_password: nacos
zte:
  service: # 服务实例的版本，灰度发布时需要用到
    version: 2.0

spring:
  application:
    name: zfs-fsc
  cloud:
    inetutils:
      preferred-networks: 10.161
    nacos:
      server-addr: ${zte_config_server_addr}	#nacos服务器的地址，多个时以逗号间隔
      username: ${zte_config_username}
      password: ${zte_config_password}
      config:   # 【1】 配置获取配置
        namespace: ${zte_config_namespace}    #指定加载哪个名称空间的配置
        group: ${zte_config_group}  #指定加载哪个组的配置
        name: application   #指定要加载的配置dataId,默认是 ${spring.application.name}
#        file-extension: properties  # name指定的dataId的后缀，默认是 properties
        shared-configs:    # 指定要加载哪些共享的配置信息
          - dataId: application.properties
            group: ${zte_config_group}
            refresh: true
          - dataId: zfs-env.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: common.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: sharding-jdbc.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: redis.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: mongodb.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: file.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: mqs.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: es.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: log.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: zipkin.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: discovery.yml
            group: ${zte_config_group}
            refresh: true
          - dataId: logback-spring.xml
            group: ${zte_config_group}
            refresh: true
          - dataId: automatic-sql.yml
            group: ${zte_config_group}
            refresh: true
